import request from '@/utils/request'

// 设备出库

// 查询设备出库列表
export function getEqExWarehouseList(param) {
    return request({
        url: 'rest/eqExWarehouse/getListByLike',
        method: 'post',
        data: param
    })
}

// 设备出库
export function getEqExWarehouseSaveEx(param) {
    return request({
        url: 'rest/eqExWarehouse/saveEx',
        method: 'post',
        data: param
    })
}

// 通过code查询设备数据
export function getEquipmentListCode(param) {
    return request({
        url: 'rest/equipment/getListByExWarehouseCode',
        method: 'post',
        data: param
    })
}

// 设备归还
export function getEqReturnWarehouseSaveEx(param) {
    return request({
        url: 'rest/eqReturnWarehouse/saveEx',
        method: 'post',
        data: param
    })
}

// 设备归还列表
export function getEqReturnWarehouseListByLike(param) {
    return request({
        url: 'rest/eqReturnWarehouse/getListByLike',
        method: 'post',
        data: param
    })
}

// 设备归还详情 用code查
export function getDetailByReturnWarehouseCode(param) {
    return request({
        url: 'rest/eqReturnWarehouse/getDetailByReturnWarehouseCode',
        method: 'post',
        data: param
    })
}


// 4.1.10.通过出库编号查询设备列表
export function getEquipmentCode(param) {
    return request({
        url: 'rest/equipment/getListByExWarehouseCode',
        method: 'post',
        data: param
    })
}


// 4.1.14.设备一键归还
export function getEqReturnWarehouseOneButton(param) {
    return request({
        url: 'rest/eqReturnWarehouse/oneButton',
        method: 'post',
        data: param
    })
}

// 通过出库编号查 归还编号
export function getEqReturnWarehouseExCode(param) {
    return request({
        url: 'rest/eqReturnWarehouse/getListByExCode',
        method: 'post',
        data: param
    })
}